﻿@{
    Layout = "~/Views/Shared/Ordinary.cshtml";
    ViewData["Title"] = "用户组管理";

}
@section css{
    <link href="~/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="~/css/public.css" rel="stylesheet" />
}
<div style="padding:20px;">
    <form class="layui-form" style="width:80%;">
        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">用户组名称<i style="color:red;">*</i></label>
            <div class="layui-input-block">
                <input type="text" class="layui-input userGroupName" lay-verify="required" placeholder="请输入用户组名称">
            </div>
        </div>
        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">父用户组<i>&nbsp;</i></label>
            <div class="layui-input-block">
                <select lay-search class="parentUserGroupId">
                    <option value="">请选择</option>
                    @{
                        foreach (var item in ViewBag.UserGroupList)
                        {
                            <option value="@item.UserGroupId">@item.UserGroupName</option>
                        }
                    }
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-row layui-col-xs12">
            <label class="layui-form-label">备注<i>&nbsp;</i></label>
            <div class="layui-input-block">
                <textarea placeholder="备注" class="layui-textarea note"></textarea>
            </div>
        </div>
        <input type="text" style="display:none;" class="userGroupId">
        <div class="layui-form-item layui-row layui-col-xs12">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="addUserGroup">保存</button>
                <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<script src="~/lib/main.js"></script>
<script src="~/lib/require/require.js" data-main="../js/Areas/SystemManager/UserGroup/UserGroupAdd"></script>

